package com.xukang.demo.controller;

import com.xukang.demo.entity.ApiResponse;

public class BaseController {


    public ApiResponse returnHystrixResponse(){
        ApiResponse apiResponse = new ApiResponse();
        apiResponse.setCode("001");
        apiResponse.setMsg("因为接口 超时 了返回一个友好提示：服务进行降级！线程池名称(隔离的池子)："+Thread.currentThread().getName());
        return apiResponse;
    }
}
